package query;

import java.io.IOException;
import java.io.Serializable;
import java.util.Vector;

import model.Tarif;
import server.MySqlConnector;

public class TarifSuchenQuery extends AbstractQuery implements Serializable {
	private static final long serialVersionUID = 2661011647794721161L;
	Tarif tarif;
	private int id;
	
	public void setId(int id) {
		this.id = id;
	}

	
	public void doAction() {
		tarif = MySqlConnector.getTarif(id);
		
		try {
			
			serverOutputStream.writeObject(tarif);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	

}
